package com.agu.result;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 封装统一的返回结果
 * @author agu
 *
 * @param <T>
 */
public class Result<T> {
	private int code;
	private String message;
	private T data;
	
	@JsonIgnore
	private String remark;  // 备注  用于记录日志使用

	public int getCode() {
		return code;
	}

	public Result() {
	}

	public Result setCode(int resultCode) {
		this.code = resultCode;
		return this;
	}

	public String getMessage() {
		return message;
	}

	public Result setMessage(String message) {
		this.message = message;
		return this;
	}

	public T getData() {
		return data;
	}

	public Result setData(T data) {
		this.data = data;
		return this;
	}

	public String getRemark() {
		return remark;
	}

	public Result setRemark(String remark) {
		this.remark = remark;
		return this;
	}
}
